home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Jurassic Jigsaws
/
JURASSIC.BIN
/
mmvdemo.dir
/
00381_Script_movie script
< prev
next >
Wrap
Text File
|
1996-09-24
|
3KB
|
102 lines
global gTitleList, gControlButtonList, gDirectionList, gIntroButtonList, gFrameList, gMMVList
global gNextmarker, gWhichTitle, gPlaying, gWaitTime
on startmovie
set gTitleList = [ "Cybertown", "Cyberopolis", "Carnival", "CyberStone", "Museum"]
set gControlButtonList = [ "Play", "Stop", "QuitB", "Quit", "MainMenu" ]
set gDirectionList = [ "Left Arrow", "Right Arrow" ]
set gIntroButtonList = [ "IntroGus", "Buds" ]
set gMMVList = ["About", "People", "Gus", "Award", "Order" ]
set gFrameList = [ "Cybertown":11, "Cyberopolis":14, "Carnival":8, "CyberStone":8, "Museum":17, ¼
"Gus" : 16, "People" :4, "About": 2 ]
set gWaitTime = 180
end startmovie
on DoButton whichbutton
if getPos ( gDirectionList, whichbutton ) > 0 then
-- alert " we are doing a direction button " & RETURN & whichbutton
if whichbutton = "Left Arrow" then
-- if label (0) = label(gWhichTitle) then set gNextMarker = getAprop(gFramelist, gWhichtitle)
-- else set gNextmarker = -1
if label (0) = label(gWhichTitle) then go label ( getAprop(gFramelist, gWhichtitle) )
else go Label (-1)
else if label (1) = label ( "end" & gWhichtitle ) then
go Label ( gWhichtitle )
else go label ( 1 )
set gPlaying = FALSE
go the frame + 1
exit
else if getPos ( gTitleList, whichbutton ) > 0 then
-- alert " we are doing a Title button " & RETURN & whichbutton
put whichbutton into gWhichTitle
put whichbutton into gNextMarker
-- go the frame + 1
go label(gWhichTItle)
set gPlaying = FALSE
exit
else if getPos ( gMMVList, whichbutton ) > 0 then
-- alert " we are doing a Title button " & RETURN & whichbutton
put whichbutton into gWhichTitle
put whichbutton into gNextMarker
go label (gWhichTitle)
exit
else if getPos (gControlButtonList, whichbutton ) > 0 then
-- alert " we are doing a control button " & RETURN & whichbutton
if whichbutton = "Play" then set gPlaying = TRUE
else if whichbutton = "Stop" then
set gPlaying = FALSE
puppetsound 0
else if whichbutton = "QuitB" or whichbutton = "QUIT" then
go to movie "Dintrfce"
else if whichbutton = "Mainmenu" then
go frame "Intro"
else alert "the Control Button " & RETURN & whichbutton & RETURN & "is not accounted for"
continue
exit
else if getPos ( gIntroButtonList, whichbutton ) > 0 then
-- alert " we are doing an intro button " & RETURN & whichbutton
if whichbutton = "IntroGus" then go label ("MMVMenu")
else if whichbutton = "Buds" then go label ("DemoMenu")
else alert "the Intro Button " & RETURN & whichbutton & RETURN & "is not accounted for"
exit
else
alert "the button " & RETURN & whichbutton & RETURN & " was not found in any" & RETURN¼
& " of the button lists."
end if
end DoButton
on waitforvoiceover
repeat while soundbusy(1) or soundbusy(2)
if the mousedown then exit repeat
end repeat
sound stop 1
sound stop 2
end waitforvoiceover
on wait howlong
set the timer = 0
starttimer
repeat while the timer < howlong
if the mousedown = TRUE then exit repeat
end repeat
end wait